import axios from '@/request.js'
import { queryParams } from "@/composables/util"



export function getcomment(page,query){
    let r = queryParams(query)
    return axios.get(`/comment?page=${page}${r}`);
  } 



export function update(id,data) {
  return axios.post(`/comment/update?id=${id}`, data);
}

